package com.tongzhan.entity.party;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 参政议政表
 *
 * @author hongjianbin
 * @date 2020/7/13
 */
@TableDoc(table = "t_participation",desc = "参政议政表")
@Data
@Document(collection = "t_participation")
public class Participation extends BaseModel {
    @PrimaryKey
    @ColumnDoc("主键id")
    private String pid;//参政议政id

    @ColumnDoc("发布标题")
    private String title;//发布标题

    @ColumnDoc("政治内容")
    private String participation_content;//政治内容

    @ColumnDoc("时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;//时间

    @ColumnDoc("参政图片")
    private String action_picture;//参政图片

    @ColumnDoc("是否删除")
    private Integer is_del;//是否删除

    @ColumnDoc("上报人名称")
    private String add_username;//上报人名称

    @ColumnDoc("上报人id")
    private String add_userid;//上报人id

    @ColumnDoc("类型")
    private Integer type;//类型 1是党派 2是侨台 3是乡贤

    @ColumnDoc("街道code")
    private String streetCode;

    @ColumnDoc("村社区")
    private String villageCode;//村社区
}
